package jiang.SensitiveWord;

import java.util.Set;

/**
 * @ClassName KeywordUtil
 * @Description:
 * @Author jiangshitao
 * @Date 2023/10/30
 */
public class KeywordUtil {
    public static String getKeywordString(Set<String> set){
        String value = "";
        for (String temp : set){
            value += temp +",";
        }

        if (value.endsWith(",")){
            value = value.substring(0,value.lastIndexOf(","));
        }
        return value;

    }
}
